import {_decorator} from 'cc';
import {UIView} from "db://assets/script/ui/UIView";
import * as cc from "cc";
import {oops} from "db://assets/script/Oops";
import {UIID} from "db://assets/script/config/UIConfig";

const { ccclass, property } = _decorator;

@ccclass('MainUI')
export class MainUI extends UIView {
    public init() {
        this.node.on("click",this.openSecond,this);
    }

    public openSecond(){
        oops.uiMgr.open(UIID.UISecond);
    }

}


